import java.awt.Color;
import java.awt.Font;
import java.awt.FontFormatException;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.MalformedURLException;

import javax.swing.JFrame;

public class gmm extends JFrame{
	BufferedImage lols;

	Font gFont;

	public gmm(){
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		
		
		
		LaserWall lw = new LaserWall(new Point(0,0), 4, 60);
		
		
		
		
		
		
		File file = new File("garboo.ttf");
		FileInputStream fis;
		try {		
			fis = new FileInputStream(file);
			gFont = Font.createFont(Font.TRUETYPE_FONT, fis);	 
			System.out.println(gFont.canDisplay('T'));
		} catch (Exception e) {
			System.out.println("couldn't load my nigga font...");
			e.printStackTrace();
		}

		setSize(1280, 800);
		setVisible(true);

	
	}



	public void paint(Graphics g){
//		System.out.println();
		Graphics2D g2 = (Graphics2D)g;
//
		
		
		g2.setColor(Color.red);
		g2.drawString("GAME PAUSED", 430, 360);
		
		
		g2.setColor(Color.red);
		g2.drawRect( 500, 300, 100, 200);
		g2.setColor(new Color(.0f, .0f, .0f, .2f));
		g2.fillRect( 501, 301, 99, 199);


		
		
		g2.setColor(new Color( .25f,.25f,.25f,.6f));
		
		gFont = 
			gFont.deriveFont(60f);
		
		g2.setFont(gFont);
		g2.setColor(Color.black);
		g2.drawString("GAME PAUSED", 415, 360);
		
		
		gFont = gFont.deriveFont(20f);
		g2.setFont(gFont);
		g2.drawString(" press >>esc<< to quit to main menu", 432, 430);
		g2.drawString(" press >> P << to resume game", 465, 460);
		
		
//		g2.drawString("Be sure to make note of the level code, so you can return here", 243, 550);
//		g2.drawString("without having to play through all the previous levels again", 253,580 );
		
		
		gFont = gFont.deriveFont(15f);
		g2.setFont(gFont);
		g2.drawString("Be sure to make note of the level code, so you can return here", 348, 550);
		g2.drawString("without having to play through all the previous levels again", 358,580 );
		
		
	}



	public static void main(String[]args) throws FontFormatException, IOException 
	{
		new gmm();
	}

}

